# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
#     https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
#     https://docs.fastlane.tools/plugins/available-plugins
#

# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane

default_platform(:ios)

platform :ios do
  
  desc "构建 pgyer 内测iOS包"
  lane :beta_pgyer do
    build_app(
      export_method: "ad-hoc", # 指定项目的scheme名称
      configuration: "Release", # 指定打包方式，Release 或者 Debug
      silent: true, # 隐藏没有必要的信息
      clean: true, # 是否清空以前的编译信息 true：是
      # workspace: "Runner.xcworkspace",
      include_bitcode: false, # 项目中的 bitcode 设置
      output_directory: './output', # 指定输出文件夹
      # output_name: "Runner.ipa", # 输出的ipa名称
      export_xcargs: "-allowProvisioningUpdates" # 忽略文件
    )
    pgyer(api_key: "d8b167ff594eaa7efe4dee07161deed5", user_key: "707784f9a150af775f5aef1fa403e076")
  end
end
